﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using BUS;
using DTO;

namespace GUI
{
    public partial class XtraUserControl1 : DevExpress.XtraEditors.XtraUserControl
    {
        public XtraUserControl1()
        {
            InitializeComponent();
        }

        private void XtraUserControl1_Load(object sender, EventArgs e)
        {
            BindingList<NhanLichChuyenBay_DTO> listGhiNhanDatVe = NhanLichChuyenBay_BUS.GetNhanLichChuyenBayList();
            gridC_DSChuyenBay.DataSource = listGhiNhanDatVe;

            List<SanBay_DTO> listSanBay = SanBay_BUS.GetSanBayList();
            SanBayDi.ValueMember = SanBayColumns.MaSanBay;
            SanBayDi.DisplayMember = SanBayColumns.TenSanBay;
            SanBayDi.DataSource = listSanBay;

            SanBayDen.ValueMember = SanBayColumns.MaSanBay;
            SanBayDen.DisplayMember = SanBayColumns.TenSanBay;
            SanBayDen.DataSource = listSanBay;
        }


    }
}
